package com.xiaozhichao.databafflesys.repository.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

/**
 * <p>
 * 失败模板管理表
 * </p>
 *
 * @author xiaozhichao
 * @since 2021-03-30
 */
public class BaffleFailTmp extends Model<BaffleFailTmp> {

    private static final long serialVersionUID=1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 错误响应模板报文路径
     */
    private String resTmpUrl;

    /**
     * 接口id
     */
    private Long interfaceId;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getResTmpUrl() {
        return resTmpUrl;
    }

    public void setResTmpUrl(String resTmpUrl) {
        this.resTmpUrl = resTmpUrl;
    }

    public Long getInterfaceId() {
        return interfaceId;
    }

    public void setInterfaceId(Long interfaceId) {
        this.interfaceId = interfaceId;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "BaffleFailTmp{" +
        "id=" + id +
        ", resTmpUrl=" + resTmpUrl +
        ", interfaceId=" + interfaceId +
        "}";
    }
}
